package com.equdao.car_violation_inquiry.service.impl;

import com.equdao.car_violation_inquiry.dao.WebPageViolationHistoryMapper;
import com.equdao.car_violation_inquiry.pojo.WebPageViolationHistoryDO;
import com.equdao.car_violation_inquiry.service.WebPageViolationHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 杨忠强
 * @Date: 2018/7/5 16:45
 * @Description:
 */
@Service
public class WebPageViolationHistoryServiceImpl implements WebPageViolationHistoryService{
    @Autowired
    WebPageViolationHistoryMapper webPageViolationHistoryMapper;




    @Override
    public Integer saveWebPageViolationHistory(WebPageViolationHistoryDO webPageViolationHistoryDO) {
        Integer integer = webPageViolationHistoryMapper.saveWebPageViolationHistory(webPageViolationHistoryDO);


        return integer;
    }

    @Override
    public List<WebPageViolationHistoryDO> findWebPageViolationHistory() {
        List<WebPageViolationHistoryDO> webPageViolationHistoryDO = webPageViolationHistoryMapper.findWebPageViolationHistory();

        return webPageViolationHistoryDO;
    }
}
